/**
 * Created by Blink on 2017/7/19.
 * icon
 */

import React from "react";
export default class Icon extends React.Component {
    render() {
        const {name, size, ...other} = this.props;

        return (
            <span {...other} className={'icon-' + name} style={{fontSize: size}} />
        );
    }
}

Icon.defaultProps = {
    name: 'picture-o',
    size: 24
};
